package com.alu.sg.allstart.allstar;

import android.os.Bundle;
import android.view.View;

import com.alu.sg.allstart.R;
import com.alu.sg.allstart.base.BaseFragment;
import com.alu.sg.allstart.weight.ProgressWebView;


/**
 * Created by Alu on 2017/9/18.
 * version 1.0
 */

public class MyGirlStarDetailFragment extends BaseFragment {

    public static MyGirlStarDetailFragment newInstance(String name) {
        MyGirlStarDetailFragment fragment = new MyGirlStarDetailFragment();
        Bundle bundle = new Bundle();
        bundle.putString("name", name);
        fragment.setArguments(bundle);
        return fragment;
    }

    @Override
    protected int getLayoutId() {
        return R.layout.fragment_gril_star_detail;
    }

    @Override
    protected void initView(View view, Bundle saveInstanceState) {
        ProgressWebView progressWebView = (ProgressWebView) view.findViewById(R.id.progress_web_view);
        progressWebView.loadUrl("https://www.baidu.com/s?wd=" +getArguments().getString("name"));
    }
}
